import request from '@/utils/request'

// 查询信息
export function listEquipment(query) {
  return request({
    url: '/equipment/equipment/find',
    method: 'get',
    params: query
  })
}

// 查询下拉信息表栏舍编码
export function findPhouseCode(query) {
  return request({
    url: '/equipment/equipment/findCode/',
    method: 'get',
    params: query
  })
}

// 查询用户列表
export function list(query) {
  return request({
    url: '/equipment/fans/select',
    method: 'get',
    params: query
  })
}

//根据id查询气体交换机
export function selectbyid(fansType) {
  return request({
    url: '/equipment/fans/selectbyid/' + fansType,
    method: 'get',

  })
}

//新增气体交换机
export function add(data) {
  return request({
    url: '/equipment/fans/add',
    method: 'post',
    data: data
  })
}

//修改气体交换机
export function edit(data) {
  return request({
    url: '/equipment/fans/edit',
    method: 'post',
    data: data
  })
}

//删除气体交换机（批量删）
export function del(ids) {
  return request({
    url: '/equipment/fans/delete/' + ids,
    method: 'delete'
  })

}

